package servicio;

import java.sql.ResultSet;
import java.sql.SQLException;
import java.util.List;

import persistencia.GenericoDAO;
import persistencia.TALIASDAO;
import persistencia.TPRDEDAO;
import persistencia.TPROADAO;
import persistencia.TPROVDAO;
import persistencia.TREGCDAO;
import persistencia.TTABDDAO;
import persistencia.TTIDODAO;

import bean.TALIAS;
import bean.TPRDE;
import bean.TPROA;
import bean.TPROV;
import bean.TREGC;
import bean.TTABD;
import bean.TTIDO;

public class ComprasServiceImpl implements ComprasService{
	
	TREGCDAO tregcDAO = new TREGCDAO();
	TTIDODAO ttidoDAO = new TTIDODAO();
	TALIASDAO taliasDAO = new TALIASDAO();
	TPROVDAO tprovDAO = new TPROVDAO();
	TPROADAO tproaDAO = new TPROADAO();
	TPRDEDAO tprdeDAO = new TPRDEDAO();
	TTABDDAO ttabdDAO = new TTABDDAO();
	GenericoDAO genericoDAO = new GenericoDAO();
	
	@Override
	public List<TREGC> listarTREGC(TREGC tregc) throws SQLException {
		// TODO Auto-generated method stub
		return tregcDAO.listarTREGC(tregc);
	}

	@Override
	public TTIDO buscarTTIDO(String rctdoc) throws SQLException {
		// TODO Auto-generated method stub
		return ttidoDAO.buscarTTIDO(rctdoc);
	}

	@Override
	public TALIAS listarTALIAS() throws SQLException {
		// TODO Auto-generated method stub
		return taliasDAO.listarTALIAS();
	}

	@Override
	public TPROA buscarTPROA(String rccpro) throws SQLException{
		// TODO Auto-generated method stub
		return tproaDAO.buscarTPROA(rccpro);
	}

	@Override
	public TPROV buscarTPROV(String rccpro) throws SQLException {
		// TODO Auto-generated method stub
		return tprovDAO.buscarTPROV(rccpro);
	}

	@Override
	public TPRDE buscarTPRDE(String rccpro) throws SQLException {
		// TODO Auto-generated method stub
		return tprdeDAO.buscarTPRDE(rccpro);
	}

	@Override
	public TTABD buscarTTABD(String tbiden, String tbespe) throws SQLException {
		// TODO Auto-generated method stub
		return ttabdDAO.buscarTTABD(tbiden, tbespe);
	}

	@Override
	public ResultSet listadoGenerico(String sql) throws SQLException {
		// TODO Auto-generated method stub
		return genericoDAO.listadoGenerico(sql);
	}
	
}
